package com.permission.service;

import com.permission.beans.CacheKeyConstants;

public interface SysCacheService {

    /**
     * 保存缓存
     * @param toSavedValue      保存的值
     * @param timeoutSeconds    过期时间/秒
     * @param prefix            前缀
     */
    public void saveCache(String toSavedValue, int timeoutSeconds, CacheKeyConstants prefix);

    /**
     * 保存缓存,多个值
     */
    public void saveCache(String toSavedValue, int timeoutSeconds, CacheKeyConstants prefix, String... keys);

    public String getFromCache(CacheKeyConstants prefix, String... keys);

}
